home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / documents / ELF / eladdr1 < prev    next >
Encoding:
Text File  |  1996-11-11  |  527 b   |  33 lines

  1. # start file eladdr1
  2.     beginseg 
  3.         name text 
  4.         segtype LOAD 
  5.         segflags R X 
  6.         segalign 0x1000 
  7.         contents default 
  8.     endseg
  9.     beginseg 
  10.         name data 
  11.         segtype LOAD 
  12.         segflags R W 
  13.         segalign 0x1000 
  14.         contents default 
  15.     endseg 
  16.  
  17. # create an additional data segment for the 
  18. # section .mybss0. Set the address for the 
  19. # common block aa.
  20.  
  21.     beginseg 
  22.         segtype LOAD 
  23.         segflags R W 
  24.         vaddr 0x50040000 
  25.         contents 
  26.         beginscn .mybss0 
  27.             scntype NOBITS 
  28.             scnflags ALLOC WRITE 
  29.             sym aa_ 
  30.         endscn 
  31.     endseg 
  32. # end file eladdr1
  33.